package com.yilin.platform.entity.user.auth;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yilin.platform.base_core.commons.base.BaseAuth;
import com.yilin.platform.base_core.commons.annotation.Explain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 *
 */
@Entity
@Table(name = "auth_id_card")
@TableName(value = "auth_id_card")
public class IdCard extends BaseAuth {

    private static final long serialVersionUID = 7978015080422323446L;

    @Column(name = "account_id")
    private String accountId;//账户
    @Column(name = "account_name")
    private String accountName;//账户名称

    @Column(name = "id_card_front_img")
    @Explain("身份证正面")
    private String idCardFrontImg; // 身份证正面
    @Column(name = "id_card_back_img")
    @Explain("身份证反面")
    private String idCardBackImg; // 身份证反面
    @Column(name = "id_card_person_img")
    @Explain("身份证手持照片")
    private String idCardPersonImg; // 身份证手持照片 / 人脸采集最终照片

    @Column(name = "name")
    @Explain("真实姓名")
    private String name; // 真实姓名
    @Column(name = "birthday")
    @Explain("生日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date birthday; // 生日
    @Column(name = "id_card_no")
    @Explain("身份证号码")
    private String idCardNo; // 身份证号码
    @Column(name = "address")
    @Explain("身份证地址")
    private String address; // 身份证地址

    @Column(name = "id_card_face_crop_json")
    private String idCardFaceCropJson; // 人脸活体采集剪辑图片包 包含1-7张bitmap图片
    @Column(name = "id_card_face_src_json")
    private String idCardFaceSrcJson; //  人脸活体采集原始图片包 包含1-77张bitmap图片
    @Column(name = "old_id_card_no")
    private String oldIdCardNo; //旧数据 记录最近一次修改前记录
    @Column(name = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("身份证起始时间")
    private Date startTime; //身份证起始时间
    @Column(name = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Explain("身份证有效时间")
    private Date endTime; //身份证有效时间

    public String getAccountName() {
        return accountName;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public String getIdCardFrontImg() {
        return idCardFrontImg;
    }

    public void setIdCardFrontImg(String idCardFrontImg) {
        this.idCardFrontImg = idCardFrontImg;
    }

    public String getIdCardBackImg() {
        return idCardBackImg;
    }

    public void setIdCardBackImg(String idCardBackImg) {
        this.idCardBackImg = idCardBackImg;
    }

    public String getIdCardPersonImg() {
        return idCardPersonImg;
    }

    public void setIdCardPersonImg(String idCardPersonImg) {
        this.idCardPersonImg = idCardPersonImg;
    }

    public String getIdCardFaceCropJson() {
        return idCardFaceCropJson;
    }

    public void setIdCardFaceCropJson(String idCardFaceCropJson) {
        this.idCardFaceCropJson = idCardFaceCropJson;
    }

    public String getIdCardFaceSrcJson() {
        return idCardFaceSrcJson;
    }

    public void setIdCardFaceSrcJson(String idCardFaceSrcJson) {
        this.idCardFaceSrcJson = idCardFaceSrcJson;
    }

    public String getOldIdCardNo() {
        return oldIdCardNo;
    }

    public void setOldIdCardNo(String oldIdCardNo) {
        this.oldIdCardNo = oldIdCardNo;
    }
}
